package com.woniu.mall.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author lwh
 * @since 2022-07-22
 */
public class Purchase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间;也做下单时间
     */
    private LocalDateTime createdTime;

    /**
     * 逻辑删除标识;默认1；删除0
     */
    private String deleteFlag;

    /**
     * 订单编号;以当前日期为开头
     */
    private String orderNumber;

    /**
     * 订单商品级联ID
     */
    private Integer orderToProductId;

    /**
     * 付款时间
     */
    private LocalDateTime payTime;

    /**
     * 付款状态
     */
    private String payState;

    /**
     * 购买客户ID
     */
    private Integer userId;

    /**
     * 订单来源
     */
    private Integer source;

    /**
     * 订单状态
     */
    private String state;

    /**
     * 快递信息ID
     */
    private Integer expressId;

    /**
     * 订单类型
     */
    private String orderType;

    /**
     * 优惠券ID
     */
    private Integer couponId;

    /**
     * 总金额
     */
    private Integer amount;

    private LocalDateTime updatedTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Integer getOrderToProductId() {
        return orderToProductId;
    }

    public void setOrderToProductId(Integer orderToProductId) {
        this.orderToProductId = orderToProductId;
    }
    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }
    public String getPayState() {
        return payState;
    }

    public void setPayState(String payState) {
        this.payState = payState;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public Integer getExpressId() {
        return expressId;
    }

    public void setExpressId(Integer expressId) {
        this.expressId = expressId;
    }
    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "Purchase{" +
            "id=" + id +
            ", createdTime=" + createdTime +
            ", deleteFlag=" + deleteFlag +
            ", orderNumber=" + orderNumber +
            ", orderToProductId=" + orderToProductId +
            ", payTime=" + payTime +
            ", payState=" + payState +
            ", userId=" + userId +
            ", source=" + source +
            ", state=" + state +
            ", expressId=" + expressId +
            ", orderType=" + orderType +
            ", couponId=" + couponId +
            ", amount=" + amount +
            ", updatedTime=" + updatedTime +
        "}";
    }
}
